import os
fileall=[]
dirpath='d:\\downloads'
all=os.walk(dirpath)
for each in all:
    # fileall.append(each[2])
    for each2 in each[2] :
        # for n in range(len(each2)):
        filepath=each[0]+'\\'+each2
        print(each2,os.path.getsize(filepath))

